﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="index.aspx.cs" Inherits="Maticsoft.Web.index" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head id="Head1" runat="server">
    <link rel="stylesheet" type="text/css" href="css/main.css"  media="screen" />
    <script src="js/showflash.js" type="text/javascript"></script>
	<script src="js/jquery-1.3.2.min.js" type="text/javascript"></script>
	<script  src="js/scrollnews.js" type="text/javascript"></script>
	<script type="text/javascript" src="js/jquery.flash.js"></script>
	<style type="text/css">
	<!--
    body {
        margin-top: 0px;
        margin-bottom: 0px;
        background-image: url(images/beijing.jpg);
        margin-left: 0px;
        margin-right: 0px;
        text-align:center;
    }
    --> 
    </style>
</head>
<body>
<table  id="flashTable" height="100%" width="100%" align=center >
    <tr>
        <td>
           <div id="indexFlash"></div>
        </td>
    </tr>
</table>

<script language='javascript'>
(function($){
    var winWidth=0;
    var winHeight=0;
    function findDimensions() //函数：获取尺寸
    {
        //获取窗口宽度
        if(window.innerWidth)
        winWidth=window.innerWidth;
        else if((document.body)&&(document.body.clientWidth))
        winWidth=document.body.clientWidth;
        //获取窗口高度
        if(window.innerHeight)
        winHeight=window.innerHeight;
        else if((document.body)&&(document.body.clientHeight))
        winHeight=document.body.clientHeight;

        /*nasty hack to deal with doctype swith in IE*/
        //通过深入Document内部对body进行检测，获取窗口大小
        if(document.documentElement && document.documentElement.clientHeight && document.documentElement.clientWidth)
        {
        winHeight=document.documentElement.clientHeight;
        winWidth=document.documentElement.clientWidth;
        }

        //结果
        //$('#indexFlash').attr("height",winHeight);
        //$('#indexFlash').attr("width",winWidth);
        $('#flashTable').attr("height",winHeight);
        $('#flashTable').attr("width",winWidth);
        
    
    }
    $(document).ready(function(){
       $('#indexFlash').flash(
            { src: 'flash/index.swf',
              width: 1020,
              height: 555 },
            { version: 8 }
        );
        findDimensions();
        window.onresize=findDimensions;
    });
})(jQuery);
</script>
</body>
</html>
